package com.backstage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.backstage.entity.po.SysPermission;
import com.baomidou.mybatisplus.mapper.AutoMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangkun
 * @since 2017-11-16
 */
public interface SysPermissionMapper extends AutoMapper<SysPermission> {

	/**
	 * 根据ID查询权限
	 * @param id
	 * @return
	 */
	public List<SysPermission> findPermissionListByUserId(@Param("id") String id);

     /**
      * 根据ID查询菜单
      * @param id
      * @return
      */
	public List<SysPermission> findUserMenu(@Param("id") String id);
    
    /**
     * 查询快捷菜单
     * @param id
     * @return
     */
	public List<SysPermission> findShortcutMenu(@Param("id")String id);
}
